package example1;

import java.util.Comparator;

/**
 * <h3>designPattern</h3>
 * <p>setCompareDESC</p>
 * @author : zhang.bw
 * @date : 2021-02-27 16:43
 **/
class setCompareDESC implements Comparator<Student> {

	@Override
	public int compare(Student o1, Student o2) {

		return o2.getId() - o1.getId();
	}

}
